package com.cloudkinto.service.order;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.OrderAmazonVdfItemDo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 亚马逊供应商api订单商品信息子表 供应商直接供货
 * </p>
 *
 * @author ding
 * @since 2024-06-19
 */
public interface OrderAmazonVdfItemService extends IService<OrderAmazonVdfItemDo> {

    SingleResult addInit();

    Object add(Object req, Long userId);

    SingleResult updateInit(Long id);

    Object update(Object updateVo, Long userId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit();

    List<Object> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);


    /**
     * 批量插入商品列表
     *
     * @param itemDoList 数据
     */
    void insertBatch(List<OrderAmazonVdfItemDo> itemDoList);
}
